package com.hitqz.robot.api.business.enums;

import java.util.HashMap;

/**
 * @author xupkun
 * @date 2024/8/6
 */
public enum WarningEnum {

    WARNING_LEVEL_NORMAL(0, "Normal"),
    WARNING_LEVEL_2(1, "Normal"),
    WARNING_LEVEL_3(2, "Normal"),









    ;


    public final static HashMap<Integer, WarningEnum> CMD_WARNING_STATUS = new HashMap<>();


    static {
        for (WarningEnum value : values()) {
            WarningEnum.CMD_WARNING_STATUS.put(value.getCode(), value);
        }
    }

    private final Integer code;

    private final String desc;


    WarningEnum(Integer code, String desc) {

        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }
}
